﻿Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema

<Table("BandejaCliente")>
Public Class BandejaCliente
    Implements IEntity
    <Key()>
    <DatabaseGenerated(DatabaseGeneratedOption.Identity)>
    Public Property IDBandejaCliente As Integer

    Public Property IdCliente As Integer

    <ForeignKey("IdCliente")>
    Public Overridable Property Cliente() As Cliente

    <ForeignKey("IdBandeja")>
    Public Overridable Property Bandeja() As Bandeja

    Public Property IdBandeja As Integer

    Public Property Cantidad As Integer

    <NotMapped()>
    Public Property ID() As Integer Implements IEntity.ID
        Get
            Return IDBandejaCliente
        End Get
        Set(ByVal value As Integer)
            IDBandejaCliente = value
        End Set
    End Property

End Class
